package ch.fusun.baron.core.command;

/**
 * Exception throw if a command didn't execute correctly
 */
public class CommandExecutionException extends Exception {

	/**
	 * the version UID
	 */
	private static final long serialVersionUID = -6223729748821049366L;
	private final GameCommand command;

	/**
	 * Constructor
	 * 
	 * @param command
	 *            The command which caused the error
	 */
	public CommandExecutionException(GameCommand command) {
		this.command = command;
	}

	/**
	 * @return The command
	 */
	public GameCommand getCommand() {
		return command;
	}

}
